package com.university.trade.service.impl;

import javax.annotation.Resource;

import com.university.trade.dao.ProductCategoryMapper;
import com.university.trade.entity.ProductCategory;
import com.university.trade.service.ProductCategoryService;

public class ProductCategoryServiceImpl implements ProductCategoryService {
	@Resource
	private ProductCategoryMapper productCategoryMapper;
	@Override
	public int deleteByPrimaryKey(String categoryId) {
		return this.productCategoryMapper.deleteByPrimaryKey(categoryId);
	}

	@Override
	public int insert(ProductCategory record) {
		return this.productCategoryMapper.insert(record);
	}

	@Override
	public int insertSelective(ProductCategory record) {
		return this.productCategoryMapper.insertSelective(record);
	}

	@Override
	public ProductCategory selectByPrimaryKey(String categoryId) {
		return this.productCategoryMapper.selectByPrimaryKey(categoryId);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductCategory record) {
		return this.productCategoryMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductCategory record) {
		return this.productCategoryMapper.updateByPrimaryKey(record);
	}

}
